<!-- Picturebrowse.tpl -->

<h2>{$smarty.const.LA_PICTURE_GALLERY}</h2>
<p class="headline">{$smarty.const.LA_PICUTE_GALLERY_TEXT}</p> 
<p>&nbsp;</p>
{if $set_gallery_catlist}
	<center>
    <form action="picturebrowse.php" name="itemForm" id="itemForm" method="get">
	<select name="catid" class="txt" onchange="submit();">
	<option value='0'>{$smarty.const.LA_ALL}</option>
	{$option_list}
	</select>
	</form>
	</center>
{/if}

<p class="headline">{$url_bar}</p>

{if $image_list}
<table cellpadding="3" cellspacing="4" style="clear:both;"><tr>

{foreach item=image from=$image_list}
 
	<td class='gal' width="25%">
	
 	<center>
	<a href="{$image.link}" style="clear:both;" title="{$image.alt}">
	{if $set_image_program==0}
		<img src="images/{$image.filename}" alt="{$image.alt}" hspace="2" border="0" width="{$image.w}" heigth="{$image.h}" />
	{else}
		<img src="images/{$image.filename}" alt="{$image.alt}" vspace="5" hspace="5" border="0" />
	{/if}
	</a>
 	</center>
 	</td>
 	
 	{if $image.break==4}
 		</tr><tr>
 	{/if} 
{/foreach} 

{if $image.break==4}
	<td colspan="4"></td>
{elseif $image.break==3}
	<td colspan="1"></td>
{elseif $image.break==2}
	<td colspan="2"></td>
{elseif $image.break==1}
	<td colspan="3"></td>
{/if}

</tr></table>
{else}
	<p>{$smarty.const.LA_NO_PIC_THIS_CAT}</p>
{/if}

<p class="headline">{$url_bar}</p>